﻿using AutoMapper;
using BCDto.TMS.Driver;
using BCDto.TMS.Driver.Horseman;
using BCDto.TMS.Driver.VehicleBusiness;
using BCDto.TMS.KanBan.AgentKanBan;
using BCEntity.TMS.Driver;
using BCEntity.TMS.KanBan.AgentKanBan;

namespace BCService.MapperProfiles.TMS.Driver
{
    public class DriverProfile : Profile
    {
        public DriverProfile()
        {
            CreateMap<DriverEntity, DriverDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverRequestDto, DriverEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<VehicleRequestDto, DriverEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<ElectricVehicleRequestDto, DriverEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<HorsemanRequestDto, DriverEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverDto, DriverEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<ElectricVehicleRequestDto, DriverEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverDynamicInfoEntity, DriverDynamicInfoDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverDynamicDetailEntity, DriverDynamicDetailDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
